package com.dotstone.chipism.api;


import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by lvr on 2017/4/22.
 */

public interface ApiService {
  //  //@FormUrlEncoded
   // String Base_URL = "http://59.110.159.215:8080/";
    String Base_URL = "test.xintek-iot.com:8080/";

    String Base_ShopToken_URL = "http://api.shop.soochowlightpower.com/";

    //登录
    @Headers({"Content-Type:application/json;charset=utf-8", "Accept:application/json;"})
    @POST("user/login.do")
    Observable<String>getLogInResult(@Body String content);

    @Headers({"Content-Type:application/json;charset=utf-8", "Accept:application/json;"})
    @POST("v2/xin.auth.signin")
    Observable<String>getShopToken(@Query("username") String username , @Query("password") String password);

}
